package com.indusfo.spc.service;

import com.indusfo.spc.pojo.Equipment;
import com.indusfo.spc.vo.JSONObject;

import java.util.List;

/**
 * 	类说明:设备资料业务层接口
 * 
 * @author XIET
 * 
 * @version 创建时间：2018年12月3日 上午10:44:20
 */


public interface EquipmentService {
	
	/**
	 * 	查询设备资料
	 * @param equipment
	 * @return
	 */
	JSONObject queryEquipment(Equipment equipment);
	
	/**
	 * 	删除设备资料
	 * @param lEquipmentIds
	 * @param lDataState
	 * @return
	 */
	JSONObject deleteEquipment(Long[] lEquipmentIds, Integer lDataState);
	
	/**
	 *	 新增设备资料
	 * @param equipment
	 * @return
	 */
	JSONObject insertEquipment(Equipment equipment);
	
	/**
	 *	 修改设备资料
	 * @param equipment
	 * @return
	 */
	JSONObject updateEquipment(Equipment equipment);
	
	/**
	 * 查询工位
	 * @param lProductionLineId
	 * @return
	 */
	JSONObject queryLStation(Integer lProductionLineId);

	/**
	 * 根据编码查重
	 * @param lEquipmentId
	 * @param vcEquipmentCode
	 * @return
	 */
	Equipment getByEquipmentCode(Equipment equipment);

	/**
	 * @author: louk
	 * @Description: Excel导入检测字段
	 * @date: 2019/11/4 11:14
	 *
	 */
	String checkNoRepeatExcel(Equipment equipment);

	JSONObject updateListEquipment(List<Equipment> equipmentList);
}
